package com.cetc39.service.impl;

import java.util.List;

import com.cetc39.bean.LifeCycle;
import com.cetc39.dao.LifeCycleDao;
import com.cetc39.service.LifeCycleService;

public class LifeCycleServiceImpl implements LifeCycleService {

	private LifeCycleDao lifeCycleDao;
	
	@Override
	public void add(LifeCycle lc) {
		lifeCycleDao.save(lc);
	}

	@Override
	public void delete(int id) {
		lifeCycleDao.delete(id);
	}

	@Override
	public void update(LifeCycle lc) {
		lifeCycleDao.update(lc);
	}

	@Override
	public List<?> findAll() {
		return lifeCycleDao.findAll();
	}

	@Override
	public LifeCycle findById(int id) {
		return lifeCycleDao.findById(id);
	}

	public void setLifeCycleDao(LifeCycleDao lifeCycleDao) {
		this.lifeCycleDao = lifeCycleDao;
	}

}
